<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
	<class name="Insesoft.BusinessEntities.Material,Insesoft.BusinessEntities" table="Material">

		<id name="Id" column="Id" type="Int32" unsaved-value="0">
			<generator class="native"/>
		</id>
		<property column="Nombre" type="String" name="Nombre" not-null="true" length="50" />
		<property column="Altura" type="Decimal" name="Altura" />
		<property column="Base" type="Decimal" name="Base" />
		<property column="CodigoInventario" type="String" name="CodigoInventario" length="50" />
		<property column="CostoInventario" type="Decimal" name="CostoInventario" />
		<property column="Activo" type="Boolean" name="Activo" not-null="true" />
		<many-to-one name="Empresa" column="EmpId" class="Insesoft.BusinessEntities.Empresa,Insesoft.BusinessEntities" />
		
	</class>
</hibernate-mapping>
